package com.ruo.goods.controller;

import com.github.pagehelper.PageInfo;
import com.ruo.common.core.domain.R;
import com.ruo.goods.domain.PmsProduct;
import com.ruo.goods.domain.vo.PmsProductQuery;
import com.ruo.goods.service.PmsProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.querydsl.QPageRequest;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author：尚志豪
 * @Package：com.ruo.goods.controller
 * @Project：ruoi
 * @name：PmsProductController
 * @Date：2024/7/22 20:21
 */
@RestController
@RequestMapping("/pmsProduct")
public class PmsProductController {
    @Autowired
    private PmsProductService pmsProductService;
    /**
     * 列表
     */
    @PostMapping
    public R<PageInfo<PmsProduct>> list(@RequestBody PmsProductQuery query){
        R<PageInfo<PmsProduct>> r = pmsProductService.list(query);
        return r;
    }
}
